<script>
$(function() {
	$( ".datepick" ).datepicker({
								 changeMonth: true,
								dateFormat: "dd-mm-yy",
								showOn: "both",
								buttonImage:$('#root').val()+"img/calendar.jpg",
								buttonImageOnly: true
	 							});
	$(".datepick").keydown(function(e) {
        if ( e.keyCode != 13) {}
        else 
            {
                e.preventDefault(); 
            }   
        }
    );
});
</script>
<div class="dssv index">
<?php
//function created (uses for checking all checkbox and confirm to delete selected item) which is in /js/custom_scripts.js
    echo $javascript->link('custom_scripts');
?>
<?php echo $this->Form->create('Dssv',array());?>
<table cellpadding="0" cellspacing="0">
	<tr>
			<th style="width: 10px;"><input type="checkbox" onclick="checkAll(this);" /></th>
			<th><?php echo 'MSSV';?></th>
			<th><?php echo 'Họ tên';?></th>
			<th><?php echo 'Ngày sinh';?></th>
			<th><?php echo 'Phái';?></th>

	</tr>
	<?php
	$i = 0;$stt=0;
	for ($j=0;$j<count($dssv);$j++){
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<?php
	           echo '<td width="3%"><input type="checkbox" value="'.$dssv[$j]['sinhviens']['id'].'" 
            name="data[Dssv][checked][]" id="'.$i.'" ></td>';
        ?>
		<td><?php echo $dssv[$j]['sinhviens']['mssv']; ?>&nbsp;</td>
		<td>
			<?php echo $dssv[$j]['sinhviens']['hoten']; ?>
		</td>
		<td><?php echo $dssv[$j]['sinhviens']['ngaysinh']; ?>&nbsp;</td>
		<td><?php echo $dssv[$j]['sinhviens']['phai']; ?>&nbsp;</td>

	</tr>
<?php }; ?>
	</table>
    <div align="center" style="margin-top: 10px;"><?php echo $this->Form->end(__('Đề nghị kết nạp đoàn viên mới', true));?></div>
</div>